package com.xxx.video.commen.dbs.beans;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;

@Entity
public class SearchFriendHistoryBean {
    @Id(autoincrement = true)
    public Long id;
    @Index(unique = true)
    public String searchWord;
    public long createTime;

    private SearchFriendHistoryBean(Builder builder) {
        setId(builder.id);
        setSearchWord(builder.searchWord);
        setCreateTime(builder.createTime);
    }

    @Generated(hash = 55896366)
    public SearchFriendHistoryBean(Long id, String searchWord, long createTime) {
        this.id = id;
        this.searchWord = searchWord;
        this.createTime = createTime;
    }

    @Generated(hash = 667305759)
    public SearchFriendHistoryBean() {
    }

    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getSearchWord() {
        return this.searchWord;
    }
    public void setSearchWord(String searchWord) {
        this.searchWord = searchWord;
    }
    public long getCreateTime() {
        return this.createTime;
    }
    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public static final class Builder {
        private Long id;
        private String searchWord;
        private long createTime;

        public Builder() {
        }

        public Builder id(Long val) {
            id = val;
            return this;
        }

        public Builder searchWord(String val) {
            searchWord = val;
            return this;
        }

        public Builder createTime(long val) {
            createTime = val;
            return this;
        }

        public SearchFriendHistoryBean build() {
            return new SearchFriendHistoryBean(this);
        }
    }
}
